/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoexam.entity;

import org.hibernate.validator.constraints.Length;
import com.lczyfz.campusinfo.modules.sys.entity.User;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 考证培训管理Entity
 *
 * @author yt
 * @version 2017-10-20
 */
public class CampusinfoTrain extends DataEntity<CampusinfoTrain> {

    private static final long serialVersionUID = 1L;
    private String trainName;        // 培训名称
    private String trainId;       //培训编号
    private String payment;        // 培训费用
    private String paymentMethod;        // 支付方式
    private String paymentPlace;        // 缴费地点
    private String status; //订单
    private String userId;
    private String orderCode; //订单号
    public String getOrderCode() {
        return orderCode;
    }
    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getTrainId() {
        return trainId;
    }

    public void setTrainId(String trainId) {
        this.trainId = trainId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    private User user;        // 归属用户

    public CampusinfoTrain() {
        super();
    }

    public CampusinfoTrain(String id) {
        super(id);
    }

    @Length(min = 1, max = 64, message = "培训名称长度必须介于 1 和 64 之间")
    public String getTrainName() {
        return trainName;
    }

    public void setTrainName(String trainName) {
        this.trainName = trainName;
    }

    @Length(min = 1, max = 255, message = "培训费用长度必须介于 1 和 255 之间")
    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    @Length(min = 0, max = 64, message = "支付方式长度必须介于 0 和 64 之间")
    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    @Length(min = 0, max = 255, message = "缴费地点长度必须介于 0 和 255 之间")
    public String getPaymentPlace() {
        return paymentPlace;
    }

    public void setPaymentPlace(String paymentPlace) {
        this.paymentPlace = paymentPlace;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

}